package com.woolink.per.sys.user.dao;

import java.util.List;

import org.springframework.security.core.GrantedAuthority;

import com.woolink.per.sys.user.pojo.User;

/**
 	* A data access object (DAO) providing persistence and search support for User entities.
 			* Transaction control of the save(), update() and delete() operations 
		can directly support Spring container-managed transactions or they can be augmented	to handle user-managed Spring transactions. 
		Each of these methods provides additional information for how to configure it for the desired type of transaction control. 	
	 * @see com.wootide.ets.sys.user.pojo.User
  * @author MyEclipse Persistence Tools 
 */

public interface UserDao
{
    List<GrantedAuthority> loadUserAuthoritiesByName(String username);
    
    User findByUserName(String userName);
    
    /**
     * 
     * description: 根据权限名获取资源名（菜单名），做菜单树展现<br>
     * implement: <br>
     * @param authName
     * @return
     * @see
     * @return List<String>
     * @author wuliquan
     */
    List<String> loadUserResourcesByAuth(String authName);
    
}